3.1.22 \(\int \frac {A+B x^2}{(d+e x^2)^2 \sqrt {a+b x^2+c x^4}} \, dx\) [22]

Optimal. Leaf size=782 \[ \frac {\sqrt {c} (B d-A e) x \sqrt {a+b x^2+c x^4}}{2 d \left (c d^2-b d e+a e^2\right ) \left (\sqrt {a}+\sqrt {c} x^2\right )}-\frac {e (B d-A e) x \sqrt {a+b x^2+c x^4}}{2 d \left (c d^2-b d e+a e^2\right ) \left (d+e x^2\right )}-\frac {\left (B \left (c d^3-a d e^2\right )-A e \left (3 c d^2-e (2 b d-a e)\right )\right ) \tan ^{-1}\left (\frac {\sqrt {c d^2-b d e+a e^2} x}{\sqrt {d} \sqrt {e} \sqrt {a+b x^2+c x^4}}\right )}{4 d^{3/2} \sqrt {e} \left (c d^2-b d e+a e^2\right )^{3/2}}-\frac {\sqrt [4]{a} \sqrt [4]{c} (B d-A e) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 d \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x^2+c x^4}}+\frac {A \sqrt [4]{c} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 \sqrt [4]{a} d \left (\sqrt {c} d-\sqrt {a} e\right ) \sqrt {a+b x^2+c x^4}}+\frac {\left (\sqrt {c} d+\sqrt {a} e\right ) \left (B \left (c d^3-a d e^2\right )-A e \left (3 c d^2-e (2 b d-a e)\right )\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \Pi \left (-\frac {\left (\sqrt {c} d-\sqrt {a} e\right )^2}{4 \sqrt {a} \sqrt {c} d e};2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{8 \sqrt [4]{a} \sqrt [4]{c} d^2 e \left (\sqrt {c} d-\sqrt {a} e\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x^2+c x^4}} \]

[Out]

-1/4*(B*(-a*d*e^2+c*d^3)-A*e*(3*c*d^2-e*(-a*e+2*b*d)))*arctan(x*(a*e^2-b*d*e+c*d^2)^(1/2)/d^(1/2)/e^(1/2)/(c*x
^4+b*x^2+a)^(1/2))/d^(3/2)/(a*e^2-b*d*e+c*d^2)^(3/2)/e^(1/2)-1/2*e*(-A*e+B*d)*x*(c*x^4+b*x^2+a)^(1/2)/d/(a*e^2
-b*d*e+c*d^2)/(e*x^2+d)+1/2*(-A*e+B*d)*x*c^(1/2)*(c*x^4+b*x^2+a)^(1/2)/d/(a*e^2-b*d*e+c*d^2)/(a^(1/2)+x^2*c^(1
/2))-1/2*a^(1/4)*c^(1/4)*(-A*e+B*d)*(cos(2*arctan(c^(1/4)*x/a^(1/4)))^2)^(1/2)/cos(2*arctan(c^(1/4)*x/a^(1/4))
)*EllipticE(sin(2*arctan(c^(1/4)*x/a^(1/4))),1/2*(2-b/a^(1/2)/c^(1/2))^(1/2))*(a^(1/2)+x^2*c^(1/2))*((c*x^4+b*
x^2+a)/(a^(1/2)+x^2*c^(1/2))^2)^(1/2)/d/(a*e^2-b*d*e+c*d^2)/(c*x^4+b*x^2+a)^(1/2)+1/2*A*c^(1/4)*(cos(2*arctan(
c^(1/4)*x/a^(1/4)))^2)^(1/2)/cos(2*arctan(c^(1/4)*x/a^(1/4)))*EllipticF(sin(2*arctan(c^(1/4)*x/a^(1/4))),1/2*(
2-b/a^(1/2)/c^(1/2))^(1/2))*(a^(1/2)+x^2*c^(1/2))*((c*x^4+b*x^2+a)/(a^(1/2)+x^2*c^(1/2))^2)^(1/2)/a^(1/4)/d/(-
e*a^(1/2)+d*c^(1/2))/(c*x^4+b*x^2+a)^(1/2)+1/8*(B*(-a*d*e^2+c*d^3)-A*e*(3*c*d^2-e*(-a*e+2*b*d)))*(cos(2*arctan
(c^(1/4)*x/a^(1/4)))^2)^(1/2)/cos(2*arctan(c^(1/4)*x/a^(1/4)))*EllipticPi(sin(2*arctan(c^(1/4)*x/a^(1/4))),-1/
4*(-e*a^(1/2)+d*c^(1/2))^2/d/e/a^(1/2)/c^(1/2),1/2*(2-b/a^(1/2)/c^(1/2))^(1/2))*(e*a^(1/2)+d*c^(1/2))*(a^(1/2)
+x^2*c^(1/2))*((c*x^4+b*x^2+a)/(a^(1/2)+x^2*c^(1/2))^2)^(1/2)/a^(1/4)/c^(1/4)/d^2/e/(a*e^2-b*d*e+c*d^2)/(-e*a^
(1/2)+d*c^(1/2))/(c*x^4+b*x^2+a)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.96, antiderivative size = 782, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {1710, 1728, 1209, 1722, 1117, 1720} \begin {gather*} -\frac {\sqrt [4]{a} \sqrt [4]{c} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} (B d-A e) E\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 d \sqrt {a+b x^2+c x^4} \left (a e^2-b d e+c d^2\right )}+\frac {\left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \left (\sqrt {a} e+\sqrt {c} d\right ) \left (B \left (c d^3-a d e^2\right )-A e \left (3 c d^2-e (2 b d-a e)\right )\right ) \Pi \left (-\frac {\left (\sqrt {c} d-\sqrt {a} e\right )^2}{4 \sqrt {a} \sqrt {c} d e};2 \text {ArcTan}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{8 \sqrt [4]{a} \sqrt [4]{c} d^2 e \sqrt {a+b x^2+c x^4} \left (\sqrt {c} d-\sqrt {a} e\right ) \left (a e^2-b d e+c d^2\right )}-\frac {\left (B \left (c d^3-a d e^2\right )-A e \left (3 c d^2-e (2 b d-a e)\right )\right ) \text {ArcTan}\left (\frac {x \sqrt {a e^2-b d e+c d^2}}{\sqrt {d} \sqrt {e} \sqrt {a+b x^2+c x^4}}\right )}{4 d^{3/2} \sqrt {e} \left (a e^2-b d e+c d^2\right )^{3/2}}+\frac {A \sqrt [4]{c} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 \sqrt [4]{a} d \sqrt {a+b x^2+c x^4} \left (\sqrt {c} d-\sqrt {a} e\right )}+\frac {\sqrt {c} x \sqrt {a+b x^2+c x^4} (B d-A e)}{2 d \left (\sqrt {a}+\sqrt {c} x^2\right ) \left (a e^2-b d e+c d^2\right )}-\frac {e x \sqrt {a+b x^2+c x^4} (B d-A e)}{2 d \left (d+e x^2\right ) \left (a e^2-b d e+c d^2\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(A + B*x^2)/((d + e*x^2)^2*Sqrt[a + b*x^2 + c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/4)], (2 - b/(Sqr
t[a]*Sqrt[c]))/4])/(8*a^(1/4)*c^(1/4)*d^2*e*(Sqrt[c]*d - Sqrt[a]*e)*(c*d^2 - b*d*e + a*e^2)*Sqrt[a + b*x^2 + c
*x^4])

Rule 1117

Int[1/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbol] :> With[{q = Rt[c/a, 4]}, Simp[(1 + q^2*x^2)*(Sqrt[(
a + b*x^2 + c*x^4)/(a*(1 + q^2*x^2)^2)]/(2*q*Sqrt[a + b*x^2 + c*x^4]))*EllipticF[2*ArcTan[q*x], 1/2 - b*(q^2/(
4*c))], x]] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0] && PosQ[c/a]

Rule 1209

Int[((d_) + (e_.)*(x_)^2)/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbol] :> With[{q = Rt[c/a, 4]}, Simp[(
-d)*x*(Sqrt[a + b*x^2 + c*x^4]/(a*(1 + q^2*x^2))), x] + Simp[d*(1 + q^2*x^2)*(Sqrt[(a + b*x^2 + c*x^4)/(a*(1 +
 q^2*x^2)^2)]/(q*Sqrt[a + b*x^2 + c*x^4]))*EllipticE[2*ArcTan[q*x], 1/2 - b*(q^2/(4*c))], x] /; EqQ[e + d*q^2,
 0]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && PosQ[c/a]

Rule 1710

Int[((P4x_)*((d_) + (e_.)*(x_)^2)^(q_))/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbol] :> With[{A = Coeff
[P4x, x, 0], B = Coeff[P4x, x, 2], C = Coeff[P4x, x, 4]}, Simp[(-(C*d^2 - B*d*e + A*e^2))*x*(d + e*x^2)^(q + 1
)*(Sqrt[a + b*x^2 + c*x^4]/(2*d*(q + 1)*(c*d^2 - b*d*e + a*e^2))), x] + Dist[1/(2*d*(q + 1)*(c*d^2 - b*d*e + a
*e^2)), Int[((d + e*x^2)^(q + 1)/Sqrt[a + b*x^2 + c*x^4])*Simp[a*d*(C*d - B*e) + A*(a*e^2*(2*q + 3) + 2*d*(c*d
 - b*e)*(q + 1)) - 2*((B*d - A*e)*(b*e*(q + 2) - c*d*(q + 1)) - C*d*(b*d + a*e*(q + 1)))*x^2 + c*(C*d^2 - B*d*
e + A*e^2)*(2*q + 5)*x^4, x], x], x]] /; FreeQ[{a, b, c, d, e}, x] && PolyQ[P4x, x^2] && LeQ[Expon[P4x, x], 4]
 && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && ILtQ[q, -1]

Rule 1720

Int[((A_) + (B_.)*(x_)^2)/(((d_) + (e_.)*(x_)^2)*Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4]), x_Symbol] :> With[
{q = Rt[B/A, 2]}, Simp[(-(B*d - A*e))*(ArcTan[Rt[-b + c*(d/e) + a*(e/d), 2]*(x/Sqrt[a + b*x^2 + c*x^4])]/(2*d*
e*Rt[-b + c*(d/e) + a*(e/d), 2])), x] + Simp[(B*d + A*e)*(A + B*x^2)*(Sqrt[A^2*((a + b*x^2 + c*x^4)/(a*(A + B*
x^2)^2))]/(4*d*e*A*q*Sqrt[a + b*x^2 + c*x^4]))*EllipticPi[Cancel[-(B*d - A*e)^2/(4*d*e*A*B)], 2*ArcTan[q*x], 1
/2 - b*(A/(4*a*B))], x]] /; FreeQ[{a, b, c, d, e, A, B}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^
2, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[c/a] && EqQ[c*A^2 - a*B^2, 0]

Rule 1722

Int[((A_.) + (B_.)*(x_)^2)/(((d_) + (e_.)*(x_)^2)*Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4]), x_Symbol] :> With
[{q = Rt[c/a, 2]}, Dist[(A*(c*d + a*e*q) - a*B*(e + d*q))/(c*d^2 - a*e^2), Int[1/Sqrt[a + b*x^2 + c*x^4], x],
x] + Dist[a*(B*d - A*e)*((e + d*q)/(c*d^2 - a*e^2)), Int[(1 + q*x^2)/((d + e*x^2)*Sqrt[a + b*x^2 + c*x^4]), x]
, x]] /; FreeQ[{a, b, c, d, e, A, B}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && NeQ[c*d^2
- a*e^2, 0] && PosQ[c/a] && NeQ[c*A^2 - a*B^2, 0]

Rule 1728

Int[(P4x_)/(((d_) + (e_.)*(x_)^2)*Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4]), x_Symbol] :> With[{q = Rt[c/a, 2]
, A = Coeff[P4x, x, 0], B = Coeff[P4x, x, 2], C = Coeff[P4x, x, 4]}, Dist[-C/(e*q), Int[(1 - q*x^2)/Sqrt[a + b
*x^2 + c*x^4], x], x] + Dist[1/(c*e), Int[(A*c*e + a*C*d*q + (B*c*e - C*(c*d - a*e*q))*x^2)/((d + e*x^2)*Sqrt[
a + b*x^2 + c*x^4]), x], x]] /; FreeQ[{a, b, c, d, e}, x] && PolyQ[P4x, x^2, 2] && NeQ[b^2 - 4*a*c, 0] && NeQ[
c*d^2 - b*d*e + a*e^2, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[c/a] &&  !GtQ[b^2 - 4*a*c, 0]

Rubi steps

\begin {align*} \int \frac {A+B x^2}{\left (d+e x^2\right )^2 \sqrt {a+b x^2+c x^4}} \, dx &=-\frac {e (B d-A e) x \sqrt {a+b x^2+c x^4}}{2 d \left (c d^2-b d e+a e^2\right ) \left (d+e x^2\right )}-\frac {\int \frac {-a B d e-A \left (2 c d^2-e (2 b d-a e)\right )-2 c d (B d-A e) x^2-c e (B d-A e) x^4}{\left (d+e x^2\right ) \sqrt {a+b x^2+c x^4}} \, dx}{2 d \left (c d^2-b d e+a e^2\right )}\\ &=-\frac {e (B d-A e) x \sqrt {a+b x^2+c x^4}}{2 d \left (c d^2-b d e+a e^2\right ) \left (d+e x^2\right )}-\frac {\int \frac {-\sqrt {a} c^{3/2} d e (B d-A e)+c e \left (-a B d e-A \left (2 c d^2-e (2 b d-a e)\right )\right )+\left (-2 c^2 d e (B d-A e)+c e (B d-A e) \left (c d-\sqrt {a} \sqrt {c} e\right )\right ) x^2}{\left (d+e x^2\right ) \sqrt {a+b x^2+c x^4}} \, dx}{2 c d e \left (c d^2-b d e+a e^2\right )}-\frac {\left (\sqrt {a} \sqrt {c} (B d-A e)\right ) \int \frac {1-\frac {\sqrt {c} x^2}{\sqrt {a}}}{\sqrt {a+b x^2+c x^4}} \, dx}{2 d \left (c d^2-b d e+a e^2\right )}\\ &=\frac {\sqrt {c} (B d-A e) x \sqrt {a+b x^2+c x^4}}{2 d \left (c d^2-b d e+a e^2\right ) \left (\sqrt {a}+\sqrt {c} x^2\right )}-\frac {e (B d-A e) x \sqrt {a+b x^2+c x^4}}{2 d \left (c d^2-b d e+a e^2\right ) \left (d+e x^2\right )}-\frac {\sqrt [4]{a} \sqrt [4]{c} (B d-A e) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 d \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x^2+c x^4}}+\frac {\left (A \sqrt {c}\right ) \int \frac {1}{\sqrt {a+b x^2+c x^4}} \, dx}{d \left (\sqrt {c} d-\sqrt {a} e\right )}+\frac {\left (\sqrt {a} \left (B \left (c d^3-a d e^2\right )-A e \left (3 c d^2-e (2 b d-a e)\right )\right )\right ) \int \frac {1+\frac {\sqrt {c} x^2}{\sqrt {a}}}{\left (d+e x^2\right ) \sqrt {a+b x^2+c x^4}} \, dx}{2 d \left (\sqrt {c} d-\sqrt {a} e\right ) \left (c d^2-b d e+a e^2\right )}\\ &=\frac {\sqrt {c} (B d-A e) x \sqrt {a+b x^2+c x^4}}{2 d \left (c d^2-b d e+a e^2\right ) \left (\sqrt {a}+\sqrt {c} x^2\right )}-\frac {e (B d-A e) x \sqrt {a+b x^2+c x^4}}{2 d \left (c d^2-b d e+a e^2\right ) \left (d+e x^2\right )}-\frac {\left (B \left (c d^3-a d e^2\right )-A e \left (3 c d^2-e (2 b d-a e)\right )\right ) \tan ^{-1}\left (\frac {\sqrt {c d^2-b d e+a e^2} x}{\sqrt {d} \sqrt {e} \sqrt {a+b x^2+c x^4}}\right )}{4 d^{3/2} \sqrt {e} \left (c d^2-b d e+a e^2\right )^{3/2}}-\frac {\sqrt [4]{a} \sqrt [4]{c} (B d-A e) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 d \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x^2+c x^4}}+\frac {A \sqrt [4]{c} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 \sqrt [4]{a} d \left (\sqrt {c} d-\sqrt {a} e\right ) \sqrt {a+b x^2+c x^4}}+\frac {\left (\sqrt {c} d+\sqrt {a} e\right ) \left (B \left (c d^3-a d e^2\right )-A e \left (3 c d^2-e (2 b d-a e)\right )\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \Pi \left (-\frac {\left (\sqrt {c} d-\sqrt {a} e\right )^2}{4 \sqrt {a} \sqrt {c} d e};2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{8 \sqrt [4]{a} \sqrt [4]{c} d^2 e \left (\sqrt {c} d-\sqrt {a} e\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x^2+c x^4}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains complex when optimal does not.
time = 12.00, size = 1853, normalized size = 2.37 \begin {gather*} -\frac {i \left (-4 i \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} d e^2 (B d-A e) x \left (a+b x^2+c x^4\right )+\sqrt {2} B \left (b-\sqrt {b^2-4 a c}\right ) d^2 e \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \left (d+e x^2\right ) \left (E\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )-F\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )\right )+\sqrt {2} A \left (-b+\sqrt {b^2-4 a c}\right ) d e^2 \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \left (d+e x^2\right ) \left (E\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )-F\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )\right )+2 \sqrt {2} B c d^3 \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \left (d+e x^2\right ) F\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )-2 \sqrt {2} A c d^2 e \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \left (d+e x^2\right ) F\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )-2 \sqrt {2} B c d^3 \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \left (d+e x^2\right ) \Pi \left (\frac {\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c d};i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )+6 \sqrt {2} A c d^2 e \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \left (d+e x^2\right ) \Pi \left (\frac {\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c d};i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )-4 \sqrt {2} A b d e^2 \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \left (d+e x^2\right ) \Pi \left (\frac {\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c d};i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )+2 \sqrt {2} a B d e^2 \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \left (d+e x^2\right ) \Pi \left (\frac {\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c d};i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )+2 \sqrt {2} a A e^3 \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \left (d+e x^2\right ) \Pi \left (\frac {\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c d};i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )\right )}{8 \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} d e \left (c d^3+d e (-b d+a e)\right ) \left (d+e x^2\right ) \sqrt {a+b x^2+c x^4}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(A + B*x^2)/((d + e*x^2)^2*Sqrt[a + b*x^2 + c*x^4]),x]

[Out]

((-1/8*I)*((-4*I)*Sqrt[c/(b + Sqrt[b^2 - 4*a*c])]*d*e^2*(B*d - A*e)*x*(a + b*x^2 + c*x^4) + Sqrt[2]*B*(b - Sqr
t[b^2 - 4*a*c])*d^2*e*Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x^2)/(b + Sqrt[b^2 - 4*a*c])]*Sqrt[1 + (2*c*x^2)/(b -
Sqrt[b^2 - 4*a*c])]*(d + e*x^2)*(EllipticE[I*ArcSinh[Sqrt[2]*Sqrt[c/(b + Sqrt[b^2 - 4*a*c])]*x], (b + Sqrt[b^2
 - 4*a*c])/(b - Sqrt[b^2 - 4*a*c])] - EllipticF[I*ArcSinh[Sqrt[2]*Sqrt[c/(b + Sqrt[b^2 - 4*a*c])]*x], (b + Sqr
t[b^2 - 4*a*c])/(b - Sqrt[b^2 - 4*a*c])]) + Sqrt[2]*A*(-b + Sqrt[b^2 - 4*a*c])*d*e^2*Sqrt[(b + Sqrt[b^2 - 4*a*
c] + 2*c*x^2)/(b + Sqrt[b^2 - 4*a*c])]*Sqrt[1 + (2*c*x^2)/(b - Sqrt[b^2 - 4*a*c])]*(d + e*x^2)*(EllipticE[I*Ar
cSinh[Sqrt[2]*Sqrt[c/(b + Sqrt[b^2 - 4*a*c])]*x], (b + Sqrt[b^2 - 4*a*c])/(b - Sqrt[b^2 - 4*a*c])] - EllipticF
[I*ArcSinh[Sqrt[2]*Sqrt[c/(b + Sqrt[b^2 - 4*a*c])]*x], (b + Sqrt[b^2 - 4*a*c])/(b - Sqrt[b^2 - 4*a*c])]) + 2*S
qrt[2]*B*c*d^3*Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x^2)/(b + Sqrt[b^2 - 4*a*c])]*Sqrt[1 + (2*c*x^2)/(b - Sqrt[b^
2 - 4*a*c])]*(d + e*x^2)*EllipticF[I*ArcSinh[Sqrt[2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*a*c])*e)/(2*c*d), I*ArcSinh[Sqrt[2]*Sqrt[c/(b + Sqrt[b^2 - 4*
a*c])]*x], (b + Sqrt[b^2 - 4*a*c])/(b - Sqrt[b^2 - 4*a*c])] + 2*Sqrt[2]*a*B*d*e^2*Sqrt[(b + Sqrt[b^2 - 4*a*c]
+ 2*c*x^2)/(b + Sqrt[b^2 - 4*a*c])]*Sqrt[1 + (2*c*x^2)/(b - Sqrt[b^2 - 4*a*c])]*(d + e*x^2)*EllipticPi[((b + S
qrt[b^2 - 4*a*c])*e)/(2*c*d), I*ArcSinh[Sqrt[2]*Sqrt[c/(b + Sqrt[b^2 - 4*a*c])]*x], (b + Sqrt[b^2 - 4*a*c])/(b
 - Sqrt[b^2 - 4*a*c])] + 2*Sqrt[2]*a*A*e^3*Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x^2)/(b + Sqrt[b^2 - 4*a*c])]*Sqr
t[1 + (2*c*x^2)/(b - Sqrt[b^2 - 4*a*c])]*(d + e*x^2)*EllipticPi[((b + Sqrt[b^2 - 4*a*c])*e)/(2*c*d), I*ArcSinh
[Sqrt[2]*Sqrt[c/(b + Sqrt[b^2 - 4*a*c])]*x], (b + Sqrt[b^2 - 4*a*c])/(b - Sqrt[b^2 - 4*a*c])]))/(Sqrt[c/(b + S
qrt[b^2 - 4*a*c])]*d*e*(c*d^3 + d*e*(-(b*d) + a*e))*(d + e*x^2)*Sqrt[a + b*x^2 + c*x^4])

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1494\) vs. \(2(745)=1490\).
time = 0.15, size = 1495, normalized size = 1.91

method result size
default \(\text {Expression too large to display}\) \(1495\)
elliptic \(\text {Expression too large to display}\) \(2301\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((B*x^2+A)/(e*x^2+d)^2/(c*x^4+b*x^2+a)^(1/2),x,method=_RETURNVERBOSE)

[Out]

B/e/d*2^(1/2)/(-b/a+1/a*(-4*a*c+b^2)^(1/2))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(1/2))^(1/2)*(1+1/2*b*x^2/a-1/2*x^2/a*(-4*a*c+
b^2)^(1/2))^(1/2)*(1+1/2*b*x^2/a+1/2*x^2/a*(-4*a*c+b^2)^(1/2))^(1/2)/(c*x^4+b*x^2+a)^(1/2)*EllipticPi(1/2*x*2^
(1/2)*((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2),-2/(-b+(-4*a*c+b^2)^(1/2))*a*e/d,(-1/2*(b+(-4*a*c+b^2)^(1/2))/a)^(1/2)
*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2))*c)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x^2+A)/(e*x^2+d)^2/(c*x^4+b*x^2+a)^(1/2),x, algorithm="maxima")

[Out]

integrate((B*x^2 + A)/(sqrt(c*x^4 + b*x^2 + a)*(x^2*e + d)^2), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x^2+A)/(e*x^2+d)^2/(c*x^4+b*x^2+a)^(1/2),x, algorithm="fricas")

[Out]

integral(sqrt(c*x^4 + b*x^2 + a)*(B*x^2 + A)/(c*d^2*x^4 + b*d^2*x^2 + a*d^2 + (c*x^8 + b*x^6 + a*x^4)*e^2 + 2*
(c*d*x^6 + b*d*x^4 + a*d*x^2)*e), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + B x^{2}}{\left (d + e x^{2}\right )^{2} \sqrt {a + b x^{2} + c x^{4}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x**2+A)/(e*x**2+d)**2/(c*x**4+b*x**2+a)**(1/2),x)

[Out]

Integral((A + B*x**2)/((d + e*x**2)**2*sqrt(a + b*x**2 + c*x**4)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x^2+A)/(e*x^2+d)^2/(c*x^4+b*x^2+a)^(1/2),x, algorithm="giac")

[Out]

integrate((B*x^2 + A)/(sqrt(c*x^4 + b*x^2 + a)*(x^2*e + d)^2), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {B\,x^2+A}{{\left (e\,x^2+d\right )}^2\,\sqrt {c\,x^4+b\,x^2+a}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((A + B*x^2)/((d + e*x^2)^2*(a + b*x^2 + c*x^4)^(1/2)),x)

[Out]

int((A + B*x^2)/((d + e*x^2)^2*(a + b*x^2 + c*x^4)^(1/2)), x)

________________________________________________________________________________________